<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-list.php");
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <? include_once(ROOT_PATH_ . "/controller/common/module/head.php"); ?>

    <link href="asset/css/style.css" rel="stylesheet" type="text/css"/>
    <?php include 'module/head.php'; ?>
</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?>
        </div>




        <div id="content">
            <?php $page_title='新增单位';?>
            <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>



                <div class="box layui-form">



<form id="add-form" method="post" action="../controller/detail-add-function.php" enctype="multipart/form-data" class="layui-form">





    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
        </div>
    </div>




    <div class="layui-form-item">
        <label class="layui-form-label">企业识别码</label>
        <div class="layui-input-block">
            <input type="text" name="ai_idnumber" autocomplete="off" class="layui-input" value="<? echo $detail['idnumber']?>">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="ai_phone" autocomplete="off" class="layui-input" value="<? echo $detail['phone']?>">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">法人</label>
        <div class="layui-input-block">
            <input type="text" name="ai_faren" autocomplete="off" class="layui-input" value="<? echo $detail['faren']?>">
        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">传真</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="ai_fax" autocomplete="off" class="layui-input" value="--><?// echo $detail['fax']?><!--">-->
<!--        </div>-->
<!--    </div>-->
<!---->

    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" name="ai_address" autocomplete="off" class="layui-input" value="<? echo $detail['address']?>">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="ai_email"   autocomplete="off" class="layui-input" value="<? echo $detail['email']?>">
        </div>
    </div>







    <div class="layui-form-item">
        <label class="layui-form-label">行业类型</label>
        <div class="layui-input-block" >
            <?foreach (semicolonExplode($unit_setting['industry_type']) as $k=>$v) { ?>
                <input type="radio" name="ai_source"  value="<? echo $v?>" title="<? echo $v?>">
            <? }?>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>

        <div class="layui-input-block" >

            <input type="radio" name="ai_status"  value="正常"  title="正常"  <? if($detail['status']=="正常"){echo "checked";} ?>>
            <input type="radio" name="ai_status"  value="结业"  title="结业"  <? if($detail['status']=="结业"){echo "checked";} ?>>

        </div>


    </div>




    <div class="layui-form-item">
        <label class="layui-form-label">网站</label>
        <div class="layui-input-block">
            <input type="text" name="ai_website1" autocomplete="off" class="layui-input" value="<? echo $detail['website1']?>">
        </div>
    </div>




    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
        </div>
    </div>






    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>






</div>



<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>
</body>
</html>
